package com.ruoyi.web.controller.xcx;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.ATeam;
import com.ruoyi.system.service.IATeamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 团队Controller
 *
 * @author ruoyi
 * @date 2024-05-16
 */
@RestController
@RequestMapping("/xcx/aTeam")
public class XcxATeam extends BaseController {

    @Autowired
    private IATeamService aTeamService;

    /**
     * 获取团队信息
     */
    @GetMapping(value = "/getUserATeam")
    public AjaxResult getUserATeam()
    {
        return success(aTeamService.getUserATeam());
    }


    /**
     * 获取团队详细信息
     */
    @GetMapping(value = "/getInfo")
    public AjaxResult getInfo(Long id)
    {
        return success(aTeamService.selectATeamById(id));
    }
}
